package com.bh.controller;

import com.bh.bean.User;
import com.bh.remote.UserRemoteClient;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class UserController implements UserRemoteClient {

    @Override
    public Map queryUser(String id) {
        System.out.println("-------查詢用戶"+id);
        Map map=new HashMap();
        map.put("id",id);
        map.put("username","admin");
        return map;
    }

    @Override
    public void login(String username, String password) {
        System.out.println(username);
        System.out.println(password);
    }

    @Override
    public void testGetMap(Map map) {
        System.out.println("---------");
    }

    @Override
    public void testPostMap(Map map) {
        System.out.println("---------");
    }

    @Override
    public void testPostUser(User user) {
        System.out.println("---------");
    }

    @Override
    public void testStringQueryMap(Map map) {
        System.out.println("---------");
    }

    @Override
    public void testStringQueryUser(User user) {
        System.out.println("---------");
    }
}
